<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head >
    <!-- This block will be replaced by template. -->
</head>
<body class="hold-transition login-page">

<div class="login-box">
    <div class="login-logo">
        <b>OAuth2</b> 登录授权
    </div>

    <div class="login-box-body">
        <p class="login-box-msg"> 程序想要请您授权以下内容：</p>
        <form id="confirmationForm" name="confirmationForm" th:action="@{/oauth/authorize}" method="post">
            <input type="hidden" name="user_oauth_approval" value="true">
            <div class="form-group has-feedback">
                <span>Some Scope</span>
                <span class="pull-right">
                <label>
                    <input type="radio" name="scope.all" value="true" checked="${scope.value}" class="flat-green"/> <i class="fa fa-unlock"></i> 许可
                </label>
                <label>
                    <input type="radio" name="scope.all" value="false" checked="${!scope.value}" class="flat-red"/> <i class="fa fa-lock"></i> 拒绝
                </label>
                </span>
            </div>
            <div class="row">
                <!-- /.col -->
                <div class="col-xs-4 col-xs-offset-4">
                    <button class="btn btn-primary" type="submit">确认并授权</button>
                </div>
                <!-- /.col -->
            </div>
        </form>
        <div class="social-auth-links text-center">
            <p>请许可上述授权范围并点击确认并授权按钮继续。</p>
            <p>- OR -</p>
            <p><a href="login.html">Or sign in as a different user</a></p>
        </div>
    </div>

    <div class="lockscreen-footer text-center">
        Copyright &copy; 2017 <b>
        <a href="http://www.newni.com" class="text-black">
        <span th:text="${clientId}"/>-<span th:text="${scopes}"/>
        </a></b><br/>
        All rights reserved
    </div>
</div>
<!-- /.center -->

</body>
</html>

